package com.iwdnb.gkgz.application.vo;

/**
 * @author pengl
 * @date 2020/11/9
 */
public class StockConstants {

    public static final String KEY_STOCK_POOL = "stockCache";
    public static final String KEY_STOCK_POOL_LIST = "stockListCache";
    public static final String KEY_STOCK_CODE = "code";

    public static final String KEY_DAY_TRADE_POOL = "dayTradePlanCache";
    public static final String KEY_DAY_TRADE_POOL_LIST = "dayTradePlanListCache";
    public static final String KEY_DATA_ID = "id";

    public static final String KEY_GRID_TRADE_POOL = "gridTradePlanCache";
    public static final String KEY_GRID_TRADE_POOL_LIST = "gridTradePlanListCache";

    public static final String KEY_GRID_TRADE_VAR_POOL = "gridTradePlanVarCache";
    public static final String KEY_DAY_TRADE_VAR_POOL = "dayTradePlanVarCache";

    public static final String KEY_T0_MONITOR_PREFIX = "plan:t0:monitor:";

    public static final String KEY_T0_TRADE_PREFIX = "plan:t0:trade:";
    public static final String KEY_STOCK_REALTIME_DATA_PREFIX = "stock:realtime:data:";
    public static final String KEY_STOCK_REALTIME_SIMPLE_DATA_PREFIX = "stock:realtime:simpleData";

    public static final String KEY_COMPOSE_STOCK_ITEM_PREFIX = "compose:stock:item:";

    public static final String KEY_COMPOSE_ASSET_CACHE_PREFIX = "compose:stock:asset:";

    public static final String KEY_COMPOSE_TRADE_PROFIT_CACHE_PREFIX = "compose:stock:profit:";

    public static final String KEY_GRID_TRADE_PREFIX = "plan:grid:trade:";
    public static final String KEY_GRID_LAST_TRADE_PRICE = "lastTradePrice";
    public static final String KEY_GRID_NEXT_SELL_PRICE = "nextSellPrice";
    public static final String KEY_GRID_NEXT_BUY_PRICE = "nextBuyPrice";

//    public static final String KEY_T0_MONITOR_NEXT_INCREASE = "nextIncreasePer";
//    public static final String KEY_T0_MONITOR_NEXT_DECREASE = "nextDecreasePer";

    public static final String KEY_T0_LAST_MONITOR_PER = "lastNotifyPer";
    public static final String KEY_T0_LAST_MONITOR_PRICE = "lastNotifyPrice";
    public static final String KEY_T0_LAST_MONITOR_TIME = "lastNotifyTime";

//    public static final String KEY_T0_TRADE_NEXT_INCREASE = "nextTradeIncreasePer";
//    public static final String KEY_T0_TRADE_NEXT_DECREASE = "nextTradeDecreasePer";

    public static final String KEY_T0_LAST_TRADE_PER = "lastTradePer";
    public static final String KEY_T0_LAST_TRADE_PRICE = "lastTradePrice";
    public static final String KEY_T0_LAST_TRADE_TIME = "lastTradeTime";

    public static final String KEY_PRICE_NOT_ENOUGH_PREFIX = "priceNotEnough:";

    public static final int PRICE_NOT_ENOUGH_CODE = 1001;

    public static final String STOCK_SUBJECT = "股票盯盘系统";
    public static final String STOCK_STRATEGY_T0 = "t0";
    public static final String STOCK_STRATEGY_GRID = "grid";

    public static final int DATA_REFRESH_INTERVAL_SECONDS = 6;
    public static final int LOCK_TYR_SECONDS = 3;
    public static final int STATUS_CHECK_INTERVAL_MINUTES = 2;

    public static final int STOCK_T0_EXPIRE_HOURS = 8;

    public static final int STOCK_LAST_DATA_EXPIRE_HOURS = 24;

    public static final int KEY_DEFAULT_EXPIRE_HOURS = 8;
}
